import { createApp } from 'vue'
//引入element-plus组件
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import App from './App.vue'
//引入中文包
import locale from 'element-plus/dist/locale/zh-cn.js'
import router from '@/router/index.js'
import {createPinia} from "pinia"
import {createPersistedState} from "pinia-plugin-persistedstate";

const app = createApp(App)
const pinia = createPinia()
//将pinia中的数据持久化
const persist = createPersistedState()
pinia.use(persist)

app.use(ElementPlus, {locale});
app.use(router)
app.use(pinia)
app.mount('#app')
